package com.jprocms.module.cms.service.channel;

import com.jprocms.module.cms.dal.dataobject.channel.ChannelAttrDO;
import com.jprocms.module.cms.dal.mysql.channel.ChannelAttrMapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.List;

/**
 * 栏目自定义字段 Service 实现类
 *
 * @author jprocms
 */
@Service
@Validated
public class ChannelAttrServiceImpl implements ChannelAttrService {

    @Resource
    private ChannelAttrMapper channelAttrMapper;

    @Override
    public List<ChannelAttrDO> getChannelAttrList(Long channelId) {
        return channelAttrMapper.selectListByChannelId(channelId);
    }

}
